package com.easylinkin.linkappapi.tenant.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author TongJie
 * @since 2020-06-30
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("linkapp_tenant_ref_device_unit")
public class TenantRefDeviceUnit extends Model<TenantRefDeviceUnit> {

    private static final long serialVersionUID = 1L;

    @TableId("id")
    private String id;

    @TableField("device_unit_id")
    private String deviceUnitId;

    @TableField("tenant_id")
    private String tenantId;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
